package me.zhengjie.modules.rest.intell;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.service.EnterIntIntellectualService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api("知识产权api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/enterIntell")
public class EnterIntIntellectualController {

    private final EnterIntIntellectualService enterIntIntellectualService;

    @ApiOperation("知识产权趋势分析")
    @GetMapping("/queryIntellectual")
    @AnonymousAccess
    public Map<String, Object> queryIntellectual(){
        return enterIntIntellectualService.queryIntellectual();
    }

}
